<script setup>
import ChatRoom from '../components/ChatRoom.vue'
import { aiService } from '../api'

// 创建一个包装函数，适配新的API接口（忽略chatId参数）
const chatWithAgent = (question, chatId) => {
  // 只传递question参数，忽略chatId
  return aiService.doChatWithManus(question)
}
</script>

<template>
  <div class="super-agent-container">
    <ChatRoom 
      title="AI 超级智能体" 
      :chatFunction="chatWithAgent"
    />
  </div>
</template>

<style scoped>
.super-agent-container {
  height: 100vh;
  padding: 1rem;
  background-color: #f0f8ff; /* 浅蓝色背景 */
}
</style>